import {getDicts } from '@/api/dict/index'

const dict= {
    actions: {
       //获取字典数据
        GetDicts({commit}, data) {
            return new Promise((resolve, reject) => {
                getDicts(data).then(res => {
                    resolve(res)
                }).catch(error => {
                    reject(error)
                })
            })
        }
    }
}

export default dict